package 枚举;

public enum B {
    X(){
        @Override
        public void go() {

        }
    },Y(){
        @Override
        public void go() {

        }
    };

    B() {
    }

    B(String name) {
        this.name = name;
    }

    private String name;
    public abstract void go();
}
